<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="<?php echo base_url() ?>css/reset.css" type="text/css" rel="stylesheet" media="screen" />
        <link href="<?php echo base_url() ?>css/style.css" type="text/css" rel="stylesheet" media="screen" />
        <title>fashion woman</title>
    </head>
    <body>
        <div id="main_box">
            <?php echo form_open_multipart(current_url()); ?>
            <?php echo $custom_error; ?>
            <?php echo form_hidden('gioithieu_id', $result->gioithieu_id) ?>

            <p><label for="noidung">Noidung<span class="required">*</span></label>                                
                <textarea id="noidung" name="noidung"><?php echo html_entity_decode($result->noidung) ?></textarea>
                <?php echo display_ckeditor($ckeditor_2); ?>

                <?php echo form_error('noidung', '<div>', '</div>'); ?>
            </p>


            <p><label for="hinh_gioithieu_url">Hinh_gioithieu_url<span class="required">*</span></label>                                

                <?php echo form_upload('hinh_gioithieu_url') ?>

                <?php echo form_error('hinh_gioithieu_url', '<div>', '</div>'); ?>
            </p>


            <p><label for="trangthai">Trangthai<span class="required">*</span></label>                                
                <!--<input id="trangthai" type="text" name="trangthai" value="<?php // echo $result->trangthai ?>"  />-->

                <select>
                    <option selected="<?php echo ($result->trangthai === 1) ? "selected" : "" ?>">Đang sử dụng</option>
                    <option selected="<?php echo ($result->trangthai !== 1) ? "selected" : "" ?>">Đang tắt</option>
                </select> 
<?php echo form_error('trangthai', '<div>', '</div>'); ?>
            </p>

            <p>
<?php echo form_submit('submit', 'Submit'); ?>
            </p>

<?php echo form_close(); ?>
        </div>
    </body>
</html>